package com.xuanyuan.jni

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView

class JniActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_jni)

        val nativeLib = NativeLib()
        val tvtext=findViewById<TextView>(R.id.tvtext)

        try{
            tvtext.text = nativeLib.stringFromJNI()
        }catch (e:Exception){
            e.printStackTrace()
        }




    }
}